<template>
  <div class="right-menu">
    <div class="right-tabs">
      <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
        <el-tab-pane name="information" label="资料"></el-tab-pane>
        <el-tab-pane name="innerHository" label="历史会话"></el-tab-pane>
        <el-tab-pane name="innerKnowledgebase" label="知识库"></el-tab-pane>
        <el-tab-pane name="innerToolbase" label="工具库"></el-tab-pane>
      </el-tabs>
    </div>
    <div class="right-component">
      <component :is="activeName"></component>
    </div>
  </div>
</template>

<script>
import information from "./information";
import innerHository from "./inner-hository";
import innerKnowledgebase from "./inner-knowledgebase";
import innerToolbase from "./inner-toolbase";
export default {
  name: "right-menu",
  components: {
    information,
    innerHository,
    innerKnowledgebase,
    innerToolbase,
  },
  data() {
    return {
      activeName: "information",
    };
  },
  mounted() {},
  methods: {
    handleClick() {},
  },
};
</script>

<style lang="scss" scoped>
.right-tabs {
  ::v-deep .el-tabs--card>.el-tabs__header .el-tabs__nav {
    border: none;
  }
  ::v-deep .el-tabs__item.is-active{
    background: $custom-tabs;
    color:#fff;
  }
}
.right-component{
  height: 586px;
  overflow-y: auto;
}
</style>